{extend name="common/common"/}

{block name="content-header"}
<h1>
    评论
    <small>Optional description</small>
</h1>
<ol class="breadcrumb">
    <li><a href="#"><i class="fa fa-dashboard"></i> Level</a></li>
    <li class="active">Here</li>
</ol>
{/block}

{block name="content"}
<div class="row">
    <div class="col-xs-12">

        <div class="sub clearfix">
            <div class="pull-left">

            </div>
            <div class="pull-right">
                <form method="get" action="">

                </form>
            </div>
        </div>

        <div class="subsub subsub-top clearfix">
            <div class="pull-left">


            </div>
            <div class="pull-right">
            </div>
        </div>

        <div class="box box-solid box-table">
            <div class="box-body table-responsive no-padding">
                <table class="table table-hover">
                    <thead>
                    <tr>

                        <th>评论人</th>
                        <th>内容</th>
                        <th>日期</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tfoot>
                    <tr>
                        <th>评论人</th>
                        <th>内容</th>
                        <th>日期</th>
                        <th>操作</th>
                    </tr>
                    </tfoot>
                    <tbody>
                    {foreach $result as $vo}
                    <tr>

                        <td>
                            {$vo.username}
                        </td>
                        <td>
                            {$vo.content}
                        </td>

                        <td>{$vo['create_at']}</td>
                        <td>
                            <a href="{:url('delComment', ['id' => $vo['id'], 'type' => 'del'])}" class="btn btn-danger btn-xs">删除</a>
                        </td>
                    </tr>
                    {/foreach}
                    </tbody>
                </table>

            </div>
            <!-- /.box-body -->
        </div>
        <!-- /.box -->

        <div class="subsub subsub-bottom clearfix">
            <div class="pull-left">

            </div>
            <div class="pull-right">
                {$result->render()}
            </div>
        </div>

    </div>
</div>
{/block}